package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysAssetsVehicleMapper;
import com.ruoyi.system.domain.SysAssetsVehicle;
import com.ruoyi.system.service.ISysAssetsVehicleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-07-07
 */
@Service
public class SysAssetsVehicleServiceImpl implements ISysAssetsVehicleService 
{
    @Autowired
    private SysAssetsVehicleMapper sysAssetsVehicleMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public SysAssetsVehicle selectSysAssetsVehicleById(Long id)
    {
        return sysAssetsVehicleMapper.selectSysAssetsVehicleById(id);
    }

    @Override
    public SysAssetsVehicle selectSysAssetsVehicleByPlateNo(String carNo) {
        return sysAssetsVehicleMapper.selectSysAssetsVehicleByPlateNo(carNo);
    }

    @Override
    public List<SysAssetsVehicle> selectSysAssetsVehicleByUid(String uid) {
        return sysAssetsVehicleMapper.selectSysAssetsVehicleByUid(uid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysAssetsVehicle 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysAssetsVehicle> selectSysAssetsVehicleList(SysAssetsVehicle sysAssetsVehicle)
    {
        return sysAssetsVehicleMapper.selectSysAssetsVehicleList(sysAssetsVehicle);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysAssetsVehicle 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysAssetsVehicle(SysAssetsVehicle sysAssetsVehicle)
    {
        return sysAssetsVehicleMapper.insertSysAssetsVehicle(sysAssetsVehicle);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysAssetsVehicle 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysAssetsVehicle(SysAssetsVehicle sysAssetsVehicle)
    {
        return sysAssetsVehicleMapper.updateSysAssetsVehicle(sysAssetsVehicle);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysAssetsVehicleByIds(String ids)
    {
        return sysAssetsVehicleMapper.deleteSysAssetsVehicleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteSysAssetsVehicleById(Long id)
    {
        return sysAssetsVehicleMapper.deleteSysAssetsVehicleById(id);
    }
}
